<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			console.time("My operation");
			var maxCount = 1000000;
			var result = 0;
			for(var n =0;n<maxCount;n++)
			{
				result += ((n+2)*2-4)/2;
			}
			console.timeEnd("My operation")
		</script>
	</head>
	<body>
	</body>
</html>
